<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/common/common.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="${backPath}/images/skin.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
-->
</style>
<script type="text/javascript" language="javascript">
  function checkString(){
     var title=document.getElementById("title").value;
     var content=document.getElementById("bulletin_content").value;
     if(title.length==0||content.length==0){
           alert("标题和内容不能为空！");
           return false;
      }else{
           return true;
      }
  }
</script>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="${backPath}/images/mail_leftbg.gif"><img src="${backPath}/images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="${backPath}/images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">编辑公告</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="${backPath}/images/mail_rightbg.gif"><img src="${backPath}/images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="${backPath}/images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td colspan="2" valign="top">&nbsp;</td>      
      </tr>
      <tr>
        <td colspan="2" valign="top">
          <!--HTML-->
       <form action="/card/edit_Bulletin.action" method="post" onsubmit="return checkString()"/>
         <input type="hidden" name="bulletin.bulletinid" value="${bulletin.bulletinid}"/>
          <table class=main_tab id=mainTable cellspacing=0
cellpadding=0 width=100% border=0>
            <!--TBODY-->
            <tbody style="DISPLAY: block">
              <tr>
                <td valign=top>
                <table width="98%" height="113" border=0 align="center" cellpadding=0 cellspacing=0>
                  <tbody>
                    <tr>
                      <td height="5" colspan="3"></td>
                    </tr>
                    <tr>
                      <td width="4%" height="28" background="${backPath}/images/news-title-bg.gif"></td>
                      <td height="25" colspan="2" background="${backPath}/images/news-title-bg.gif" class="left_txt">公告标题：
                        <label>
                          <input name="bulletin.bulletintitle" type="text" id="title" value="${bulletin.bulletintitle}" size="80" />
                        </label></td>
                    </tr>
                    <tr>
                      <td bgcolor="#FAFBFC">&nbsp;</td>
                      <td height="25" colspan="2" valign="middle" bgcolor="#FAFBFC" class="left_txt">公告内容：</td>
                      </tr>
                    <tr>
                      <td bgcolor="#FAFBFC">&nbsp;</td>
                      <td height="25" colspan="2" bgcolor="#FAFBFC"><label>
                        <textarea name="bulletin.bulletincontent" id="bulletin_content" cols="80" rows="10">${bulletin.bulletincontent}</textarea>
                      </label></td>
                      </tr>
                    <tr>
                      <td bgcolor="#FAFBFC">&nbsp;</td>
                      <td width="42%" height="25" bgcolor="#FAFBFC">&nbsp;</td>
                      <td width="54%" height="25" bgcolor="#FAFBFC"><span class="left_txt"><font color="#FFFFFF" class="left_ts"><b><font color="#FFFFFF" class="left_ts"><b><font color="#FFFFFF" class="left_ts"><b><font color="#FFFFFF" class="left_ts"><b>
                       
                        <label><font color="#FFFFFF" class="left_ts"><b><font color="#FFFFFF" class="left_ts"><b><font color="#FFFFFF" class="left_ts"><b><font color="#FFFFFF" class="left_ts"><b>
                          <input type="button" name="back" id="back" value="返回" onclick="history.back()" />
                        </b></font></b></font></b></font></b></font></label>
                      </b></font></b></font></b></font></b></font></span></td>
                    </tr>
                    <tr>
                      <td height="5" colspan="3"></td>
                    </tr>
                  </tbody>
                </table>
                </form>
                </td>
              </tr>
            </tbody>           
          </table></td>
      </tr>
    </table></td>
    <td background="${backPath}/images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="${backPath}/images/mail_leftbg.gif"><img src="${backPath}/images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="${backPath}/images/buttom_bgs.gif"><img src="${backPath}/images/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="${backPath}/images/mail_rightbg.gif"><img src="${backPath}/images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
</body>
</html>